﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class user_hotproduct : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            LoadHotProduct();
        }
    }
    public void LoadHotProduct()
    {
        DataSet2TableAdapters.tbl_productTableAdapter daProduct = new DataSet2TableAdapters.tbl_productTableAdapter();
        DataSet2 ds2 = new DataSet2();
        daProduct.Fill2(ds2.tbl_product);

        DataTable dt = new DataTable();
        dt = ds2.Tables["tbl_product"];

        DataListHotproduct.DataSource = dt;
        DataListHotproduct.DataBind();
    }
}
